package com.examplemartin.jpademo.pojo.vo;

import com.examplemartin.jpademo.pojo.po.UserPO;
import com.examplemartin.jpademo.pojo.po.cust.CustPO;
import com.examplemartin.jpademo.pojo.po.purchase.PurPO;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 采购订单实体
 */

@Data
@Component
public class SellVO {

    private Long id;

    private Date createTime;
    private Date updateTime;

    // 订单好
    private String name;

    // 要货日期
    private Date need;

    // 订单状态
    private Integer status = PurPO.PURPO_STATUS_SPARE;

    // 备注
    private String comment;

    // 对应销售 one
    private UserPO userPO;

    // 对应顾客 one
    private CustPO custPO;

    // 合计金额
    private Float sumSellDetail = 0f;


    /*// 对应采购入库单 list
    private List<PurInPO> purInPOList;

    // 对应采购订单明细 list
    private List<PurDetailPO> purDetailPOList;*/


}
